package com.frejoys.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frejoys.dao.entity.UserQrcode;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserQrcodeMapper extends BaseMapper<UserQrcode> {


    // 获取用户二维码和小程序码
    @Select("select id,qr_code from j_user_qrcode where user_id=#{userId} limit 1")
    UserQrcode getCodeInfo(@Param("userId") Long userId);

}
